//
//  Const.swift
//  Mall-swift
//
//  Created by dfpo on 2020/10/15.
//  Copyright © 2020 Bob. All rights reserved.
//

import UIKit
public struct Constants {
    public static let  screenWidth = UIScreen.main.bounds.width
    public static let  screenHeight = UIScreen.main.bounds.size.height
    /// 导航栏高度44，不包括状态栏
    public static let  navH = 44
    public static let  statusbarH = UIApplication.shared.statusBarFrame.height
    /// 判断是否是iPhone X（非iPhone X系列状态栏高度正常是20，通话、录音、定位等特殊场景是高度是40，iPhone X系列非特殊场景高度已经是44）
    public static let iphoneX: Bool = (statusbarH >= 44)
    /// home indicator
    public static let homeIndicatorH: CGFloat =  iphoneX ? 34.0 : 0;
    /// tabBar高度(home indicator + 49)
    public static let tabBarH: CGFloat = homeIndicatorH + 49
    
    
    public struct Api {
        /// 首页列表
        public static let homeList = "/api/marketing/homepage/list"
        /// 首页名人分类
        public static let homeType = "api/marketing/homepage/v2/list"
        /// 名人堂列表
        public static let famousList = "api/marketing/pick/customer/recommend"
    }
}
